package com.xian.im.modules.im.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xian.im.modules.im.controller.model.login.LoginReq;
import com.xian.im.modules.im.entity.AccountEntity;

/**
 * 
 *
 * @author xlr
 * @email 
 * @date 2021-01-18 19:11:56
 */
public interface AccountService extends IService<AccountEntity> {

    /**
     *
     * @param userId
     * @return
     */
    AccountEntity getEntityByUserId(Long userId);

    /**
     *  登录
     * @param account
     * @return
     */
    AccountEntity getEntityByAccount(String account);

    /**
     *
     * @param req
     * @return
     */
    Boolean checkLoginPermissions(LoginReq req);
}

